﻿namespace Sgr.Oss.ViewModels
{
    public class OssUploadModel
    {
        /// <summary>
        /// 存储桶名称
        /// </summary>
        public string Bucket { get; set; } = string.Empty;

        /// <summary>
        /// 对象路径
        /// </summary>
        public string ObjectPath { get; set; } = string.Empty;

        /// <summary>
        /// 对象大小（字节）
        /// </summary>
        public long Size { get; set; }

        /// <summary>
        /// 实体标签，一般是文件内容的哈希值
        /// </summary>
        public string ETag { get; set; } = string.Empty;

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// 带有签名的预签名访问URL
        /// </summary>
        public string Url { get; set; } = string.Empty;

        /// <summary>
        /// 预签名URL的过期时间
        /// </summary>
        public string Expiry { get; set; } = string.Empty;
    }
}